home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of Shareware
/
Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso
/
mac
/
ZIPPED
/
DOS
/
GRAPHICS
/
POVSRC.ZIP
/
MACHINE.ZIP
/
MAC.SIT
/
SaveCmpPict.h
< prev
next >
Wrap
Text File
|
1992-04-24
|
3KB
|
78 lines
/*
==============================================================================
Project: POV
File Name: SaveCmpPict.h
Description:
Routines for saving a PICT file in QuickTime compressed format.
This source code was written with a lot of help from some examples
off of Apple's QuickTime 1.0 Developer CD.
Note that this source requires the as-yet non-standard header files
and glue files for QuickTime and the Standard Compression dialog.
These files will need to accompany this source until Apple rolls them
into MPW/Think. The additional files needed are listed below:
Components.h - MPW/Think - QuickTime Component header
ImageCompression.h - MPW/Think - QuickTime Image Compression header
StdCompression.h - MPW/Think - Std Compression dialog header
StdCompression.rsrc - MPW/Think - Std Compression dialog resource
StdCompressionGlue.o - MPW - Std Compression dialog glue routines
StdCompressionGlue.╣ - Think - Std Compression dialog glue routines
Related Files:
SaveCmpPict.h: header file for Save Compressed Pict routines
SaveCmpPict.c: main file for Save Compressed Pict routines
------------------------------------------------------------------------------
Author:
Eduard [esp] Schwan
------------------------------------------------------------------------------
Copyright 1992 POV-Team.
This source code is distributed exclusively with POV, and is subject to
the same distribution restrictions as the rest of the source code.
* Copying, distribution and legal info is in the file povlegal.doc which
* should be distributed with this file. If povlegal.doc is not available
* or for more information please contact:
*
* Drew Wells [POV-Team Leader]
* CIS: 73767,1244 Internet: 73767.1244@compuserve.com
* Phone: (213) 254-4041
*
------------------------------------------------------------------------------
Change History:
920414 [esp] Created.
920419 [esp] Embellished file header comments, renamed routines for consistency
==============================================================================
*/
/*==== Mac Toolbox Headers ====*/
#include <types.h>
#include <files.h>
#include <memory.h>
#include <qdoffscreen.h>
/*==== QuickTime compression headers ====*/
#include "ImageCompression.h"
#include "StdCompression.h"
typedef enum {eAFI_ShrinkWholeImage, eAFI_UseCenter} eAFI_ImagePrefs_t;
OSErr AppendFilePreview2PictF(FSSpec *fsFile);
OSErr AppendFinderIcons2PictF(FSSpec *fsFile,
Rect *theOriginalPicFrame,
eAFI_ImagePrefs_t theImagePrefs);
Boolean PromptForCompressionStyle(ComponentInstance theSCComponent,
SCParams *theSCParams,
FSSpec *theImageFile);
OSErr CompressPictF(SCParams *theSCParams,
FSSpec *theImageFile);